#!/bin/csh
if ($#argv != 1) then
  echo "run.csh: invalid number of arguements."
  echo "Usage: ./run.csh <name_of_asm_file>"
  exit
endif

echo "perl compiler.pl ../verif/asm/$1"
perl compiler.pl ../verif/asm/$1
echo "Moving $1.hex to inst_mem.mif"
cp ../verif/asm/$1.hex ../des/coregen/inst_mem/inst_mem.mif

echo $1.asm | tee "name_of_src.txt"
